package com.yunc.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunc.modules.sys.entity.SysUserRole;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;

/**
 * 系统角色
 *
 * @author congcong tao
 * @date 2018/5/14 16:15
 */
public interface ISysUserRoleService extends IService<SysUserRole> {

    /**
     * 根据用户和权限ids（逗号区分）
     */
    @CacheEvict(value = "userMenus", key = "#userId")
    boolean insertList(Long userId, String roleIds);
}
